package com.wwwarehouse.taskcenter.fragment.job_point.step2.child;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.wwwarehouse.common.activity.base.BaseFragment;
import com.wwwarehouse.taskcenter.R;

/**
 * Created by Jackie on 2017/10/27
 * 子作业点处置权维度
 */

public class ChangeTypeChildDispositionFragment extends BaseFragment implements View.OnClickListener {
    private View mRootView;

    private ImageView mStartImg;
    private ImageView mEndImg;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mRootView = inflater.inflate(R.layout.fragment_change_type_child_disposition, container, false);
        return mRootView;
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);

        initView();
        initData();
        initEvent();
    }

    private void initView() {
        mStartImg = findView(mRootView, R.id.iv_plus_start);
        mEndImg = findView(mRootView, R.id.iv_plus_end);
    }

    private void initData() {

    }

    private void initEvent() {
        mStartImg.setOnClickListener(this);
        mEndImg.setOnClickListener(this);
    }

    @Override
    public void setTitle() {

    }

    @Override
    public void requestDatas() {

    }

    @Override
    public void onClick(View v) {
        int id = v.getId();

        if (id == R.id.iv_plus_start) {
            pushFragment(new ChooseAddWayChildDispositionFragment());
        } else if (id == R.id.iv_plus_end) {
            pushFragment(new ChooseAddWayChildDispositionFragment());
        }
    }
}
